package com.cema.manage.project.util.wechat;

import java.io.UnsupportedEncodingException;
import java.util.ResourceBundle;

/**
 * 名称：ResourceUtil <br>
 * 描述：参数工具类<br>
 *
 * @author 李鹏军
 * @version 1.0
 * @since 1.0.0
 */
public class ResourceUtil {
    //小程序ID，或者公众号
    public static final String APP_ID = "wxeb6c9c99e7bd6894";
    //小程序密钥
    public static final String SECRET = "5b75533e463a84b6258cd877fcfd003d";
    //商户号
    public static final String MCHID = "1529779621";
    //支付签名
    public static final String PAYSIGNKEY = "6dfe0ad39dd24539ec171b65080b7e7e";
    //交易类型
    public static final String TRADETYPE = "JSAPI";
    //证书名称，对应不同的商户号
    public static final String CERTNAME = "/cert/apiclient_cert.p12";
    //支付回调地址
    public static final String NOTIFYURL = "http://everythingisok.free.idcfengye.com/api/pay/notify";
    //获取code的请求地址 微信公众号
   //public static final String GETCODE = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=%s&redirect_uri=%s&response_type=code&scope=%s&state=STAT#wechat_redirect";
    public static final String GETCODE = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=%s&redirect_uri=%s&response_type=code&scope=%s&state=STATE&connect_redirect=1#wechat_redirect";
    //获取Web_access_tokenhttps的请求地址
    public static final String WEBACCESSTOKENHTTPS = "https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code";
    //拉取用户信息的请求地址
    public static final String USERMESSAGE = "https://api.weixin.qq.com/sns/userinfo?access_token=%s&openid=%s&lang=zh_CN";
    //微信统一下单接口路径
    public static final String UNIFORMORDER = "https://api.mch.weixin.qq.com/pay/unifiedorder";
    //退款地址
    public static final String REFUNDURL = "https://api.mch.weixin.qq.com/secapi/pay/refund";
    //退款查询地址
    public static final String REFUNDQUERYURL = "https://api.mch.weixin.qq.com/pay/refundquery";

    public static final String ACCESS_TOKEN = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=%s&secret=%s&code=%s&grant_type=authorization_code";

}
